/*
Exercises

    1. Write a single if statement that examines two integer variables and changes 
    the larger to the smaller, using only one else clause.

*/

#include <iostream.h>

int main(){
	int x = 15;
	int y = 20;
	cout << "\nBefore operation:\n\tx: " << x << "\n\ty: " << y << endl;
	if (x > y)
		x = y;
	else
		y = x;
	cout << "\nAfter operation: \n\tx: " << x << "\n\ty: " << y << endl;
	return 0;
}
